import { isDev, postRequest } from '@/api';

const urlsObj = {};
if (isDev) {
  // ********库存相关 inventory*********
  // 取得库存预览
  urlsObj.getInventoryOverview = postRequest('inventory/list');
  // 取得出入库记录
  urlsObj.getRecordList = postRequest('inventory/recordlist/{skuId}');
  // 取得库存预警
  urlsObj.getWarningList = postRequest('inventory/warnlist/{skuId}');
} else {
  urlsObj.getInventoryOverview = postRequest('inventory/list');
  // 取得出入库记录
  urlsObj.getRecordList = postRequest('inventory/recordlist/{skuId}');
  // 取得库存预警
  urlsObj.getWarningList = postRequest('inventory/warnlist/{skuId}');
}

export default urlsObj;
